package com.exp.practice.workbench.dao;

import com.exp.practice.workbench.domain.Examination;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ExaminationDao {
    int addOneExamination(Examination examination);

    int getTotal(Examination examination);


    List<Examination> getExaminationList(@Param("skipCount") int skipCount,
                                         @Param("pageSizes")int pageSizes,
                                         @Param("eName")String eName,
                                         @Param("teacherId")String teacherId,
                                         @Param("startTime")String startTime,
                                         @Param("endTime")String endTime,
                                         @Param("published")String published);

    int publish(String eid);

    int delete(String[] eid);

    Examination getExaminationById(String eid);

    List<Examination> getExaminationLists(@Param("skipCount") int skipCount,
                                          @Param("pageSizes") int pageSizes,
                                          @Param("eids") String[] eids);
}
